/*
 * Created using SharpDevelop.
 * User: Steve
 * Date: 4/11/2006
 * Time: 7:06 PM
 * 
 */
using System;
using System.Collections.Generic;

namespace Mokey.Common
{
	public static class IntegerHelper
	{
		public static bool TryParseOrDefault(string stringToParse, out int result, int valueOnFail)
		{
			if (int.TryParse(stringToParse, out result))
			{
				return true;
			}
			else
			{
				result = valueOnFail;
				return false;
			}
		}
	}
}
